using System;
using System.Collections;
using Beetle;

internal class @as : IDisposable
{
	private static byte[] m_a = new byte[2048];

	public static bool b = false;

	private static int c = 10;

	public static string d = null;

	public static string e = null;

	public static int f = 0;

	public static DateTime g;

	private static q h;

	public static Hashtable i;

	public @as(object[] A_0, object A_1)
	{
		if (A_0 != null && A_0.Length > 0)
		{
			f = (int)A_0[0];
			g = (DateTime)A_0[1];
			b = (bool)A_0[2];
		}
		i = (Hashtable)A_1;
		h = new q();
	}

	public static void a(object A_0)
	{
		try
		{
			int[] array;
			lock (i)
			{
				array = new int[i.Count];
				i.Values.CopyTo(array, 0);
			}
			bool flag = true;
			int[] array2 = array;
			foreach (int num2 in array2)
			{
				if (num2 > f)
				{
					flag = false;
					break;
				}
			}
			if (!flag || !b)
			{
				for (int num3 = 0; num3 < c; num3++)
				{
					av av2 = TcpUtils.e.d();
					av2.SetBuffer(@as.m_a, 0, 2048);
					av2.f();
				}
			}
		}
		catch
		{
		}
		if (!TcpUtils.a)
		{
			at.b();
		}
	}

	public void Dispose()
	{
	}
}
